package main

import "fmt"

func func_1() {

}

func main() {
	/* 布尔、数字、字符串类型 */
	male := true
	age := 20
	name := "Bob"

	fmt.Printf("male type: %T\n", male)
	fmt.Printf("age type: %T\n", age)
	fmt.Printf("name type: %T\n", name)

	/* 指针类型 */
	p := &name
	fmt.Printf("p type: %T\n", p)

	/* 数组类型 */
	a := [...]int{1, 2, 3}
	fmt.Printf("a type: %T\n", a)

	/* 切片(动态数组)类型 */
	b := []int{1, 2, 3}
	fmt.Printf("b type: %T\n", b)

	fmt.Printf("b: %v\n", b)

	b = append(b, 5)
	fmt.Printf("b: %v\n", b)

	/* 函数类型 */
	fmt.Printf("func_1 type: %T\n", func_1)

}
